cmake_minimum_required(VERSION 3.4.1)
project(xlog)

SET(CMAKE_BUILD_TYPE "Release")

SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall -g -ggdb")

find_library(log-lib log)
add_library(xlog STATIC xlog.c xlog.h)
target_link_libraries(xlog ${log-lib})


